﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gadgeteer.Interfaces.Fakes.Tests
{
    [TestFixture]
    public class FakeToggleLedTest
    {
        [Test]
        public void TurnOnOff()
        {
            var led = new FakeToggleLed();

            Assert.That(led.IsTurnedOn, Is.False);

            led.TurnOn();
            Assert.That(led.IsTurnedOn, Is.True);

            led.TurnOff();
            Assert.That(led.IsTurnedOn, Is.False);
        }
    }
}
